package com.wangbo.collection;

import java.util.LinkedList;

public class TestLinkedList {
    public static void main(String[] args) {
        test01();
    }

    /**
     * add(null)
     */
    public static void test01() {
        LinkedList<Integer> list = new LinkedList<>();
        list.add(null);
        System.out.println(list.size());  // 1
        System.out.println(list.poll());  // null
        System.out.println(list.size());  // 0
    }
}
